package cn.xfdzx.android.apps.shop.model;


import java.io.File;

import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.LoginBean;
import cn.xfdzx.android.apps.shop.bean.UploadImgBeen;
import cn.xfdzx.android.apps.shop.contract.LoginContract;
import cn.xfdzx.android.apps.shop.contract.UploadImageContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;
import okhttp3.MultipartBody;
import retrofit2.http.Multipart;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class UploadModel implements UploadImageContract.Model {



    @Override
    public Flowable<UploadImgBeen> upload(MultipartBody.Part file) {
        return RetrofitClient.getInstance().getApi().uploadImg(file);
    }
}
